﻿@model List<Super.Entities.Stock>
@{
    Layout = null;
}

<div class="pageHeader" style="border: 1px #B8D0D6 solid">
    <form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox_stock');" action="/admin/stock/subsearch" method="post">
    <input type="hidden" name="pageNum" value="1" />
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    @Html.DWZTextBox("keyword", "关键词【编码、简码、产品名称】：")
                </td>
                <td>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">检索</button></div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent" style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid">
    <table class="table" width="99%" layouth="138" rel="jbsxBox2">
        <thead>
            <tr>
                <th width="120" align="center">名称</th>
                <th width="120" align="center">分类</th>
                <th width="120" align="center">价格</th>
                <th width="120" align="center">库存数量</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr target="sid_user" rel="@item.ID">
                    <td align="center">@item.Product.Title</td>
                    <td align="center">@item.Product.ProductCategory.Name</td>
                    <td align="center">@item.LSPrice</td>
                    <td align="center">@item.Count</td>
                    <td><a class="btnSelect" href="/admin/pos/order?id=@item.ID" target="ajax" rel="jbsxBox_order">入库</a></td>
                </tr>
            }
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共 @ViewBag.RecordCount 条</span>
        </div>
        <div rel="jbsxBox_stock" class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>

    <script type="text/javascript">
       if('@ViewBag.Flg'=="1") {
           navTab.reload('', {}, 'jbsxBox_order');
       }
    </script>

</div>

